<template>
  <div class="q-pa-md">
    <div class="q-gutter-md">
      <t-btn-toggle
        v-model="model"
        push
        glossy
        toggle-color="teal"
        :options="[
          { label: 'One', value: 'one', slot: 'one' },
          { label: 'Two', value: 'two', slot: 'two' },
          { label: 'Three', value: 'three', slot: 'three' },
        ]"
      >
        <template v-slot:one>
          <t-tooltip>One!</t-tooltip>
        </template>

        <template v-slot:two>
          <t-tooltip>Two!</t-tooltip>
        </template>

        <template v-slot:three>
          <t-tooltip>Three!</t-tooltip>
        </template>
      </t-btn-toggle>

      <t-btn-toggle
        v-model="model"
        push
        rounded
        glossy
        toggle-color="purple"
        :options="[
          { value: 'one', slot: 'one' },
          { value: 'two', slot: 'two' },
          { value: 'three', slot: 'three' },
        ]"
      >
        <template v-slot:one>
          <div class="row items-center no-wrap">
            <div class="text-center"> Pick<br />boat </div>
            <t-icon right name="directions_boat" />
          </div>
        </template>

        <template v-slot:two>
          <div class="row items-center no-wrap">
            <div class="text-center"> Pick<br />car </div>
            <t-icon right name="directions_car" />
          </div>
        </template>

        <template v-slot:three>
          <div class="row items-center no-wrap">
            <div class="text-center"> Pick<br />railway </div>
            <t-icon right name="directions_railway" />
          </div>
        </template>
      </t-btn-toggle>
    </div>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        model: ref('three'),
      };
    },
  };
</script>
